var utils = require('../utils/utils.js');

module.exports = {
  //统一字典下拉框查询
  govAreaList: (data, cd) => utils.get('/common/v1/govAreaList', data, cd,2),
  publicityV2:(data, cd) => utils.get('/front/merchant/publicity/v2', data, cd,2),
  merchantList:(data, cd)=>utils.get('/front/merchant/list', data, cd,2),
  browseNoticeList:(data, cd)=>utils.get('/announcement/v1/browse/list', data, cd,2),
  browseDetail:(id, cd)=>utils.get(`/announcement/v1/browse/${id}`, '', cd,2),
  //红黑榜
  blacklist: (data, cd) => utils.get('/blacklist/v1/browse/list', data, cd,2),
  //诚信商家公示
  publicitylist: (data, cd) => utils.get('/front/merchant/publicity/v2', data, cd,2),
  //统一字典下拉框查询
  getDict: (data, cd) => utils.get('/common/v1/adminDict', data, cd,2),
  //申诉商家下拉框
  govMerchantList: (data, cd) => utils.get('/front/gov/appeal/govMerchantList', data, cd,2),
  //验证码
  getcaptchaImage: (data, cd) => utils.get('/front/gov/appeal/captchaImage', data, cd,2),
  //上传图片 app/v1/merchant/account/shopIcon
  appUploadFile: (data, cd) => utils.uploadFile('/app/v1/customer/common/uploadFile', data, cd),
  //提交申诉
  addAppeal: (data, cd) => utils.twopost('/front/gov/appeal/addAppeal', data, cd,2),
  //常见问题
  getProblem: (data, cd) => utils.get('/front/common/problem/', data, cd,2),
}